/**
 * 基础组件demo
 */

import { lazyLoadView } from './routes';
import TemplateView from '../views/template';


export default {
  path: '/tool-example',
  name: 'toolExample',
  component: TemplateView,
  redirect: '/tool-example/debounce',
  meta: {
    isAuth: true,
    label: '工具示例',
    icon: 'el-icon-s-grid',
    breadcrumb: [{ label: '工具示例', path: '/tool-example' }],
  },
  children: [
    {
      path: '/tool-example/debounce',
      name: 'toolExampleDebounce',
      component: () => lazyLoadView(import('../views/tool-example/debounce-page')),
      meta: {
        label: '防抖',
        icon: '',
        breadcrumb: [{ label: '工具示例', path: '/tool-example' }, { label: '防抖', path: '' }],
      },
    },
    {
      path: '/tool-example/throttle',
      name: 'toolExampleDebounce',
      component: () => lazyLoadView(import('../views/tool-example/throttle-page')),
      meta: {
        label: '节流',
        icon: '',
        breadcrumb: [{ label: '工具示例', path: '/tool-example' }, { label: '节流', path: '' }],
      },
    },
  ],
};
